package com.xgy.vue_role_system.service.impl;

import com.xgy.vue_role_system.entity.Permission;
import com.xgy.vue_role_system.mapper.PermissionMapper;
import com.xgy.vue_role_system.service.PermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;


@Service

public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService {

    /**
     * 根据用户id查询其权限菜单列表
     * @param userId
     * @return
     */
    @Override
    public List<Permission> findPermissionListByUserId(Long userId) {
        return baseMapper.findPermissionListByUserId(userId);
    }
}
